package org.hospital.util;


import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.logging.SimpleFormatter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by pismery on 2017-10-13.
 */
public class HibernateUtil {
    static Logger logger = LoggerFactory.getLogger(HibernateUtil.class);

    public static void main(String[] args) {
        //logger.trace("trace message");
        //logger.debug("debug message");
        //logger.info("info message");
        //logger.warn("warn message");
        //logger.error("error message {}","aaa");
        //System.out.println("Hello World!");
    	
    	Timestamp t1 = new Timestamp(1000000L);
    	Timestamp t2 = new Timestamp(2000000L);
    	SimpleDateFormat sft = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    	
    	System.out.println(sft.format(t1));
    	System.out.println(sft.format(t2));
    	System.out.println(t1.before(t2));
    }
}
